package cn.sdormitory.dormitoryHygiene.dao;

import cn.sdormitory.dormitoryHygiene.entity.DormitoryHygiene;
import cn.sdormitory.dormitoryHygiene.req.DormitoryHygieneListReq;
import cn.sdormitory.dormitoryHygiene.vo.DormitoryHygieneCountVO;
import cn.sdormitory.dormitoryHygiene.vo.DormitoryHygieneListVO;
import cn.sdormitory.dormitoryHygiene.vo.ExportDormitoryHygieneVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : yy
 * @date: 2024/9/14 11:17
 * @description:
 */
@Mapper
public interface DormitoryHygieneDao extends BaseMapper<DormitoryHygiene> {
    IPage<DormitoryHygieneCountVO> listDormitoryHygiene(IPage<DormitoryHygieneCountVO> page, @Param("reqVO") DormitoryHygieneListReq hygieneListReq);

    /**
     * 根据检查日期 宿舍编号查询假期卫生登记情况
     * @author alex
     * @param: accessDate
     * @param: buildingNo
     * @param: dormitoryNo
     * @date 2024/9/29 11:25
     * @return
     */
    String getHygieneGrade(@Param("checkDate")String accessDate, @Param("dormitoryId") String dormitoryId);

    List<ExportDormitoryHygieneVO> getDormitoryHygieneCountExport(@Param("reqVO") DormitoryHygieneListReq hygieneListReq);
}
